﻿<%@ Control Language="C#" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<asp:Panel ID="Panel1" runat="server">

    <script type="text/javascript">
        function DataCheckOut() {
            var jzmjLess = document.getElementById("txtJzmjLess")
            var jzmjBig = document.getElementById("txtJzmjBig")
            var pgkeLess = document.getElementById("txtPgjeLess")
            var pgkeBig = document.getElementById("txtPgjeBig")
            if (isNaN(jzmjLess.value)) {
                jzmjLess.style.color = "red";
                jzmjLess.focus();
                alert("建筑面积只能为数字类型");
                return false;
            }
            else if (isNaN(jzmjBig.value)) {
                jzmjBig.style.color = "red";
                jzmjBig.focus();
                alert("建筑面积只能为数字类型");
                return false;
            }
            else if (isNaN(pgkeLess.value)) {
                pgkeLess.style.color = "red";
                pgkeLess.focus();
                alert("评估金额只能为数字类型");
                return false;
            }
            else if (isNaN(pgkeBig.value)) {
                pgkeBig.style.color = "red";
                pgkeBig.focus();
                alert("评估金额只能为数字类型");
                return false;
            }
            else {
                return true;
            }
        }

        function nBack() {
            window.location.href = "ZS_BCJDLR.aspx";
        }

        function btnreset() {
            var inp = document.getElementsByTagName("input");
            if (inp.length > 0) {
                for(var i=0;i<inp.length;i++){
                    if (inp[i].type == "text") {
                        inp[i].value = "";
                    }
                }
            }
            var sel = document.getElementsByTagName("select");
            if (sel.length > 0) {
                for (var i = 0; i < sel.length; i++) {                    
                    sel[i].value = '0';
                }
            }
        }
    </script>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
            <td valign="middle" height="30">
                <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                    color: black; text-indent: 1em;" runat="server">征收补偿决定数据查询</font>
            </td>
        </tr>
    </table>
    <div>
        <table class="window_tab_list" border="0px" width="100%" cellpadding="0px" cellspacing="0px">
            <tr>
                <th colspan="4">
                    征收补偿决定数据查询
                </th>
            </tr>
            <tr>
                <td>
                    征收决定号:
                </td>
                <td>
                    <asp:TextBox ID="txtXkzh" runat="server" Width="150px"></asp:TextBox>
                </td>
                <td>
                    统计类型
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="ddlTjlx" runat="server" Width="224px">
                        <asp:ListItem Value="0">征收项目数据统计表</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    案件号:&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txtCaseID" runat="server" Width="150px"></asp:TextBox>
                </td>
                <td>
                    结案情况:
                </td>
                <td>
                    <asp:DropDownList ID="ddlJaqk" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    所在区:
                </td>
                <td>
                    <asp:DropDownList ID="ddlSzq" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    发送情况:
                </td>
                <td>
                    <asp:DropDownList ID="ddlFsqk" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    补偿决定时间大于等于:
                </td>
                <td>
                    <%--<uc1:Calendar ID="calCjsjBig" runat="server" Width="150px" />--%>
                    <CBW:MPCalendar ID="calCjsjBig" runat="server" />
                </td>
                <td>
                    补偿决定时间小于:
                </td>
                <td>
                    <%--<uc1:Calendar ID="calCjsjLess" runat="server" Width="150px" />--%>
                    <CBW:MPCalendar ID="calCjsjLess" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    受理时间大于等于:
                </td>
                <td>
                    <%--<uc1:Calendar ID="calSlsjBig" runat="server" Width="150px" />--%>
                    <CBW:MPCalendar ID="calSlsjBig" runat="server" />
                </td>
                <td>
                    受理时间小于:
                </td>
                <td>
                    <%--<uc1:Calendar ID="calSlsjLess" runat="server" Width="150px" />--%>
                    <CBW:MPCalendar ID="calSlsjLess" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    结转时间大于等于:
                </td>
                <td>
                    <%--<uc1:Calendar ID="calJzslBig" runat="server" Width="150px" />--%>
                    <CBW:MPCalendar ID="calJzslBig" runat="server" />
                </td>
                <td>
                    结转时间小于:
                </td>
                <td>
                    <%--<uc1:Calendar ID="calJzsjLess" runat="server" Width="150px" />--%>
                    <CBW:MPCalendar ID="calJzsjLess" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    申请人:
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtSqr" runat="server" Width="98%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    被申请人:
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtBsqr" runat="server" Width="98%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    被征收房屋地址:
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtBcqfwdz" runat="server" Width="98%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    建筑面积大于等于:
                </td>
                <td>
                    <asp:TextBox ID="txtJzmjBig" runat="server"></asp:TextBox>
                </td>
                <td>
                    建筑面积小于:
                </td>
                <td>
                    <asp:TextBox ID="txtJzmjLess" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    评估金额大于等于:
                </td>
                <td>
                    <asp:TextBox ID="txtPgjeBig" runat="server"></asp:TextBox>
                </td>
                <td>
                    评估金额小于:
                </td>
                <td>
                    <asp:TextBox ID="txtPgjeLess" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    催告已发出
                </td>
                <td>
                    <asp:CheckBox ID="CUIGAOFACHUDATE" runat="server" />
                </td>
                <td>
                    催告已送达
                </td>
                <td>
                    <asp:CheckBox ID="CUIGAOSONGDADATE" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    已提交法院户数
                </td>
                <td>
                    <asp:CheckBox ID="QIANGZHIDATE" runat="server" />
                </td>
                <td>
                    已听证户数
                </td>
                <td>
                    <asp:CheckBox ID="TINGZHENGDATE" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    裁定结果
                </td>
                <td>
                    <asp:DropDownList ID="ddlFYSLJG" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    执行情况
                </td>
                <td>
                    <asp:DropDownList ID="ddlFYZXQK" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    先予已提交法院户数
                </td>
                <td>
                    <asp:CheckBox ID="XYQIANGZHIDATE" runat="server" />
                </td>
                <td>
                    先予已听证户数
                </td>
                <td>
                    <asp:CheckBox ID="XYTINGZHENGDATE" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    先予裁定结果
                </td>
                <td>
                    <asp:DropDownList ID="ddlXYFYSLJG" runat="server">
                    </asp:DropDownList>
                </td>
                
                <td>
                    先予执行情况
                </td>
                <td>
                    <asp:DropDownList ID="ddlXYFYZXQK" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center;">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="inputBasic" OnClientClick="return DataCheckOut();" />&nbsp;
                    <%--                        <asp:Button ID="btnReset" runat="server" Text="重置" CssClass="inputBasic" OnClick="btnReset_Click" />
                        <input id="btnBackList" type="button" value="返回列表" class="inputBasic" onclick="nBackList();" />--%>
                        <asp:Button ID="Button2" runat="server" Text="打印" CssClass="inputBasic" />&nbsp;
                    <input id="btnBack" type="button" value="返回" class="inputBasic" onclick="nBack();" />&nbsp;
                    <input  id="btnReset" type="button" value="重置" class="inputBasic" onclick="btnreset()" />
                </td>
            </tr>
        </table>
    </div>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" Visible="false">
    <div style="text-align: center">
        <object id='WebBrowser1' width='0' height='0' classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'>
        </object>
        <table class="window_tab_list" style="text-align: center; width: 97%; border-bottom-width: 0px"
            border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <input id="btnPrint" type="button" value="打印" onclick="preview();" />
                    <%-- <input id="Button1" type="button" value="返回" onclick="self.close();" />--%>
                    <asp:Button ID="Button1" runat="server" Text="返回" />
                </td>
            </tr>
        </table>
        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        <asp:Literal ID="Literal2" runat="server"></asp:Literal>
    </div>

    <script type="text/javascript">
        function preview() {
            pagesetup_null();
            bdhtml = window.document.body.innerHTML;
            sprnstr = "<!--STARTPRINT-->";
            eprnstr = "<!--ENDPRINT-->";
            prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 17);
            prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
            window.document.body.innerHTML = prnhtml;

            window.print();
        }
        var hkey_root, hkey_path, hkey_key;
        hkey_root = "HKEY_CURRENT_USER";
        hkey_path = "\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
        /*设置网页打印的页眉页脚为空*/
        function pagesetup_null() {
            try {
                var RegWsh = new ActiveXObject("WScript.Shell");
                hkey_key = "header";
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "");
                hkey_key = "footer";
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "");
            } catch (e) { }
        }
    </script>

</asp:Panel>